package com.zdsoft.blp.zongbuju.shouye.bianmin.activity;

import android.content.Intent;

import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import android.widget.TextView;


import com.zdsoft.blp.R;
import com.zdsoft.blp.gongyong.net.BaseActivity;

/**
 * Created by Administrator on 2016/9/1.
 */
public class BMcxfsActivity extends BaseActivity{
    private TextView tv_title;
    private WebView wv_cxfs;
    @Override
    protected void init() {
        setContentView(R.layout.bianmin_cxfs);
        Intent intent = getIntent();
        String title = intent.getStringExtra("title");
        tv_title = find(R.id.tv_title);
        wv_cxfs = find(R.id.wv_cxfs);
        tv_title.setText(title);

        String url=intent.getStringExtra("url");
        wv_cxfs.loadUrl(url);
       WebSettings ws = wv_cxfs.getSettings();
        ws.setJavaScriptEnabled(true);
       // ws.setBuiltInZoomControls(true);
        wv_cxfs.setWebViewClient(new WebViewClient(){
            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                view.loadUrl(url);
                return true;
            }
        });

    }
}
